package models.cartas;

import javax.print.attribute.standard.MediaSize.ISO;

public class Coringa extends Carta{
	
	public Coringa() {
		this.tipo = "Coringa";
	}
	
	@Override
	public boolean ehEmpilhavel(Carta cartaAEmpilhar) {
		
		if (cartaAEmpilhar instanceof Coringa) {
			return true;
		}
		
		if (cartaAEmpilhar instanceof CartaComCor) {
			CartaComCor c = (CartaComCor) cartaAEmpilhar;
			if (c.getCor() == this.cor) {
				return true;
			} 
		}
		
		return false;
	}
	
	@Override
	public boolean equals(Carta c) {
		// TODO Auto-generated method stub
		return false;
	}
	

}
